package com.yunxin.core.domain.model.weight;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.*;
import lombok.Data;
import java.util.Date;
import java.util.List;

@Data
public class SysTeamWeightDto {

    /**
     * 自增id
     */
    @Schema(description = "权重id")
    private Integer id;


    /**
     * 团队id
     */
    @NotNull(message = "团队id不能为空")
    @Schema(description = "团队id")
    private Long teamId;

    /**
     * 团队每日接受产品总限量
     */
    @NotNull(message = "团队每日接受产品总限量不能为空")
    @Schema(description = "团队每日接受产品总限量")
    @Min(value = 0,message = "团队每日接受产品总限量不能小于0")
    private Integer totalLimit;

    /**
     * 商户id
     */
    @Schema(hidden = true)
    private Long merchantId;


    /**
     * 状态 1.开启 2.禁用
     */
    @Schema(description =" 状态 1.开启 2.禁用",defaultValue = "1",hidden = true)
    private Integer status;

    /**
     * 创建人
     */
    @Schema(hidden = true)
    private String creator;

    /**
     * 修改人
     */
    @Schema(hidden = true)
    private String editor;

    /**
     * 删除状态 1.正常 2.删除
     */
    @Schema(description ="删除状态 1.正常 2.删除",defaultValue = "1",hidden = true)
    private Integer isDel;

    /**
     * 创建时间
     */
    @Schema(hidden = true)
    private Date createTime;

    /**
     * 团队名称
     */
    @Schema(hidden = true)
    private String teamName;

    @Schema(description = "团队产品分发占比")
    @NotEmpty(message = "团队产品分发占比不能为空")
    private List<SysTeamWeightProduct> sysTeamWeightProduct;







}
